replace HTTP::Body with HTTP::Entity::Parser and optimize query_parameters#538
Conversation
…related HTTP-Entity-Parser/issues/3
|
@kazeburo uri.t is failing. I reproduce it locally as well. |
|
@kazeburo the test is failing when you don't have XS of WWW::Form::UrlEncoded. |
|
@miyagawa I found bug in WWW::Form::UrlEncoded::PP. I'm fixing it now. Hash::MultiValue |
Right, but don't we cache H::MV result anyway? Is this to optimize |
|
H::MV flatten benchmark. about 3 times faster without twice flatten. script |
Right, then why do we do it? :) |
|
The faster is good if there is no risk or complicated code. |
replace HTTP::Body with HTTP::Entity::Parser and optimize query_parameters
|
I changed the default buffer length in 06bd1f6 |
related to #537 and #434
This PR replace HTTP::Body with HTTP::Entity::Parser and WWW::Form::UrlEncoded(::XS). HTTP::Entity::Parser was created based on tokuhirom's code of #434.
And also this PR remove
Hash::MultiValue->flatteninparametersfor reducing cost.Here is small benchmark this pr and master.
use HTTP::Entity::Parser and WWW::Form::UrlEncoded::XS
master(0fbe073)